package com.fh.module_main.adapter

import android.view.View
import com.fh.lib_base.data.bean.BannerBean
import com.fh.module_main.R
import com.zhpan.bannerview.BaseBannerAdapter

class HomeBannerAdapter(): BaseBannerAdapter<BannerBean, HomeBannerViewHolder>() {

    override fun getLayoutId(viewType: Int): Int {
        return R.layout.main_banner_itemhome
    }

    override fun createViewHolder(itemView: View, viewType: Int): HomeBannerViewHolder {
        return HomeBannerViewHolder(itemView);
    }

    override fun onBind(holder: HomeBannerViewHolder,data: BannerBean,position: Int,pageSize: Int) {
        holder?.bindData(data, position, pageSize);
    }

}